<?php
$_head_profile_attr = '';
if ( bb_is_profile() ) {
	global $self;
	if ( !$self ) {
		$_head_profile_attr = ' profile="http://www.w3.org/2006/03/hcard"';
	}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"<?php bb_language_attributes( '1.1' ); ?>>
<head<?php echo $_head_profile_attr; ?>>
	<meta http-equiv="X-UA-Compatible" content="IE=8" />
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title><?php bb_title() ?></title>
	<link rel="stylesheet" href="<?php bb_stylesheet_uri(); ?>" type="text/css" />
<?php if ( 'rtl' == bb_get_option( 'text_direction' ) ) : ?>
	<link rel="stylesheet" href="<?php bb_stylesheet_uri( 'rtl' ); ?>" type="text/css" />
<?php endif; ?>
<script src="<?php bb_active_theme_uri(); ?>js/jquery-1.3.2.min.js" type="text/javascript"></script>
<script src="<?php bb_active_theme_uri(); ?>js/slide.js" type="text/javascript"></script>

<?php bb_feed_head(); ?>

<?php bb_head(); ?>

</head>
<body id="<?php bb_location(); ?>">

<!-- Panel -->
<div id="toppanel">
	<div id="panel">
		<div class="content clearfix">
			<div class="left">
				<?php include('intro.php'); ?>
			</div>
			<div class="left">
				<!-- Login Form -->
				<form class="clearfix" method="post" action="<?php bb_uri( 'bb-login.php', null, BB_URI_CONTEXT_FORM_ACTION + BB_URI_CONTEXT_BB_USER_FORMS ); ?>">
					<h1>Member Login</h1>
						<label class="grey" for="quick_user_login"><?php _e('Username'); ?>:</label>
						<input class="field" type="text" name="user_login" id="quick_user_login" value="<?php if (!is_bool($user_login)) echo $user_login; ?>" size="23" />
						<label class="grey" for="quick_password"><?php _e( 'Password' ); ?>:</label>
						<input class="field" type="password" name="password" id="quick_password" size="23" />
		            	<label><input name="remember" id="rememberme" type="checkbox" checked="checked" value="1" /> &nbsp;<?php _e('Remember me'); ?></label>
	        			<div class="clear"></div>
						<input type="submit" name="submit" value="<?php echo esc_attr__( 'Log in &raquo;' ); ?>" class="bt_login" />
						<a class="lost-pwd" href="<?php bb_uri( 'bb-login.php', null, BB_URI_CONTEXT_FORM_ACTION + BB_URI_CONTEXT_BB_USER_FORMS ); ?>">Lost your password?</a>
						<input name="re" type="hidden" value="<?php echo $re; ?>" />
						<?php wp_referer_field(); ?>
				</form>
				
			</div>
			<div class="left right">			
				<!-- Register Form -->
				<form action="<?php bb_uri('register.php', null, BB_URI_CONTEXT_FORM_ACTION + BB_URI_CONTEXT_BB_USER_FORMS); ?>" method="post">
					<h1>Not a member yet? Sign Up!</h1>				
					<label class="grey" for="user_login"><?php _e('Username'); ?>:</label>
					<input class="field" type="text" name="user_login" id="user_login" value="" size="23" />
					<label class="grey" for="user_email"><?php _e('Email'); ?>:</label>
					<input class="field" type="text" name="user_email" id="user_email" size="23" />
					<label><?php _e("Your password will be emailed to the address you provide."); ?></label>
					<input type="submit" name="submit" value="Register" class="bt_register" />
				</form>
			</div>
		</div>
	</div> <!-- /login -->	

    <!-- The tab on top -->	
	<div class="tab">
		<ul class="login">
	    	<li class="left">&nbsp;</li>
	        <?php login_form(); ?>
	    	<li class="right">&nbsp;</li>
		</ul> 
	</div> <!-- / top -->
	
</div> <!--panel -->

	<div class="container_12">
	
		<div id="header" role="banner" class="grid_6">
			<h1><a href="<?php bb_uri(); ?>"><?php bb_option('name'); ?></a></h1>
			<?php if ( bb_get_option('description') ) : ?><p class="description"><?php bb_option('description'); ?></p><?php endif; ?>
		</div>
		<div id="searchbox" class="grid_6">
				
		</div>
		
		<div class="clear"></div>
		
		
		
		
		<div class="grid_9">
			<div id="main">
				

